// mod ex_button;

use super::ex_button::ExButton;
use gtk::prelude::*;

pub fn main() {
    let application =
        gtk::Application::new(Some("com.github.gtk-rs.examples.basic"), Default::default());
    application.connect_activate(build_ui);
    application.run();
}

fn build_ui(app: &gtk::Application) {
        let window = gtk::ApplicationWindow::new(app);
        let button = ExButton::new();
        button.set_margin_top(18);
        button.set_margin_bottom(18);
        button.set_margin_start(18);
        button.set_margin_end(18);
        window.set_child(Some(&button));
        window.present();
}
